# _*_ coding : utf-8 _*_
# @Time: 2024/10/11 15:20
# @Author : 石文帅
# @File : run.py
# @Project : python_slfh


import os
import unittest
from BeautifulReport import BeautifulReport

if __name__ == '__main__':
    #构造测试集
    #test_suite = unittest.TestSuite()

    #test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_login_model.py')
    #test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_swsxs_model.py')
    #test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_*_model.py')
    test_suite = unittest.defaultTestLoader.discover('../python_slfh/case', pattern='testbase*.py')

    result = BeautifulReport(test_suite)
    result.report(filename='测试报告', description='森林防火测试报告', report_dir=os.getcwd())
